<template lang="html">
  <div>
    <audio :src="activityDetails.music_url" id="musicPlay" loop="loop"></audio>
  </div>
</template>

<script>
import { mapState } from 'vuex'
import { audioAutoPlay } from 'utils/tool'

export default {
  mounted() {
    setTimeout(() => {
      this.$autoPlay(this.activityDetails.music_url) // main.js 定义
    }, 1000)
  },
  computed: {
    ...mapState([
      'activityDetails'
    ])
  },
  methods: {

  }
}
</script>

<style lang="scss">
@import 'assets/scss/index.scss';

</style>
